#include<iostream>
#include<cmath>
using namespace std;
typedef long long LL;
LL n;
int main()
{
	cin >> n;
	LL x, y;
	int sum = 0;
	for (LL i = 0; i < n; i++) {
		x = i * n + 1;
		y = sqrt(x);
		if (y * y == x) {
			cout << y << endl;
			sum++;
		}
	}
	if (!sum) {
		cout << "None" << endl;
	}
	return 0;
}